package Exercise2;

import java.util.ArrayList;

public class exercise6 {
	public static void main(String[] args) {
		ArrayList<Integer> numbers = new ArrayList<>();
		numbers.add(100);
		numbers.add(200);
		numbers.add(300);

		customPrint(numbers);
	}

	private static void customPrint(ArrayList<Integer> list) {
		System.out.print("{");
		for (int i = 0; i < list.size(); i++) {
			System.out.print(list.get(i));
			if (i < list.size() - 1) {
				System.out.print("@");
			}
		}
		System.out.print("}");

	}
}
